﻿<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="VistaCotizacion.aspx.vb" Inherits="VistaCotizacion" title="Untitled Page" StylesheetTheme="GridViewSkin"%>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table width="650" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td align="center" style="width: 629px">
                <asp:UpdatePanel ID="PanelMantenimiento" runat="server">
                <contenttemplate>
                <table style="width: 630px" cellspacing="0" cellpadding="0" border="0">
                    <tbody>
                        <tr>
                            <td style="height: 20px">
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 19px" align="left">
                                <asp:Label ID="lblTitulo" runat="server" Font-Bold="True" CssClass="TextoTitulo"
                                    Text="DETALLE DE COTIZACION"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 630px; height: 19px">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table cellspacing="0" cellpadding="0" width="100%">
                                    <tbody>
                                        <tr>
                                            <td style="width: 132px; height: 19px" align="left">
                                                <asp:Label ID="Label2" runat="server" CssClass="TextoEtiqueta" Text="Nro. de Cotizacion"></asp:Label></td>
                                            <td style="padding-left: 5px; width: 182px; height: 19px" align="left">
                                                :&nbsp;<asp:TextBox ID="txtNumero" runat="server" CssClass="TextoCombo" ReadOnly="true"
                                                    Width="80px"></asp:TextBox></td>
                                            <td style="width: 9px; height: 19px">
                                            </td>
                                            <td style="width: 65px; height: 19px">
                                            </td>
                                            <td style="width: 114px; height: 19px">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 132px; height: 19px" align="left">
                                                <asp:Label ID="Label5" runat="server" CssClass="TextoEtiqueta" Text="Fecha Emision"></asp:Label></td>
                                            <td style="padding-left: 5px; width: 182px; height: 19px" align="left">
                                                :&nbsp;<asp:TextBox ID="txtFecha" runat="server" CssClass="TextoCombo" Width="80px" ReadOnly="true"></asp:TextBox>
                                            </td>
                                            <td style="width: 9px; height: 19px" align="left">
                                            </td>
                                            <td style="width: 65px">
                                            </td>
                                            <td style="width: 114px; height: 19px" align="left">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 132px; height: 19px" align="left">
                                                <asp:Label ID="Label11" runat="server" CssClass="TextoEtiqueta" Text="Solicitud de Compra"
                                                    Width="127px"></asp:Label></td>
                                            <td style="padding-left: 5px; width: 199px; height: 24px" align="left" colspan="4">
                                                :&nbsp;<asp:TextBox ID="txtNumeroCompra" runat="server" CssClass="TextoCombo" ReadOnly="True"
                                                    Width="80px" ValidationGroup="1"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 132px; height: 19px" align="left">
                                                <asp:Label ID="Label3" runat="server" CssClass="TextoEtiqueta" Text="Proveedor" Width="127px"></asp:Label></td>
                                            <td style="padding-left: 5px; height: 19px" align="left" colspan="4">
                                                :&nbsp;<asp:DropDownList ID="ddlProveedor" runat="server" CssClass="TextoCombo" Width="429px" enabled="false">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 132px; height: 19px" align="left">
                                                <asp:Label ID="Label1" runat="server" CssClass="TextoEtiqueta" Text="Estado" Width="127px"></asp:Label></td>
                                            <td style="padding-left: 5px; height: 19px" align="left" colspan="4">
                                                :&nbsp;<asp:DropDownList ID="ddlEstado" runat="server" CssClass="TextoCombo" Width="192px" enabled="false">
                                                    <asp:ListItem Value="1">Aprobado</asp:ListItem>
                                                    <asp:ListItem Value="0">Desaprobado</asp:ListItem>
                                                    <asp:ListItem Value="2">Pendiente</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 20px">
                                <table width="100%">
                                    <tbody>
                                        <tr>
                                            <td style="height: 20px" align="left">
                                                <asp:Label ID="Label6" runat="server" Font-Size="11pt" Font-Names="Arial" Font-Bold="True"
                                                    Text="Productos"></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td align="center">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center">
                                                <asp:GridView ID="dgDatos" runat="server"
                                                    SkinID="Enterprise" AutoGenerateColumns="False" DataKeyNames="CODIGO">
                                                    <Columns>
                                                        <asp:TemplateField HeaderText="ITEM">
                                                            <ItemStyle Width="15px" HorizontalAlign="Right"></ItemStyle>
                                                            <ItemTemplate>
                                                                <asp:Label ID="fila" runat="server" Text="<% # Container.DataItemIndex + 1 %>"></asp:Label>
                                                            </ItemTemplate>
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="CODIGO" HeaderText="CODIGO">
                                                            <ItemStyle HorizontalAlign="Left"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="PRODUCTO" HeaderText="NOMBRE PRODUCTO">
                                                            <ItemStyle Width="150px" HorizontalAlign="Left"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="CANTIDAD" HeaderText="CANTIDAD">
                                                            <ItemStyle  HorizontalAlign="Left"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="PUNITARIO" HeaderText="PR. UNITARIO">
                                                            <ItemStyle  HorizontalAlign="Left"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="PTOTAL" HeaderText="PR. TOTAL">
                                                            <ItemStyle  HorizontalAlign="Left"></ItemStyle>
                                                        </asp:BoundField>
                                                        <asp:BoundField DataField="GARANTIA" HeaderText="GARANTIA">
                                                            <ItemStyle  HorizontalAlign="Left"></ItemStyle>
                                                        </asp:BoundField>
                                                    </Columns>
                                                </asp:GridView>
                                                <%--<TRIGGERS /><ASP:ASYNCPOSTBACKTRIGGER EventName="SelectedIndexChanged" ControlID="dgListaProducto" />--%>
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 20px">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table cellspacing="0" cellpadding="0" width="100%">
                                    <tbody>
                                        <tr>
                                            <td style="width: 127px; height: 19px" align="left">
                                            </td>
                                            <td style="padding-left: 5px; width: 182px; height: 16px" align="left">
                                            </td>
                                            <td style="width: 9px; height: 19px">
                                            </td>
                                            <td style="width: 67px; height: 19px" align="right">
                                                <asp:Label ID="Label13" runat="server" CssClass="TextoEtiqueta" Text="Total" Visible="False"></asp:Label></td>
                                            <td style="width: 114px; height: 19px">
                                                <asp:Label ID="lblTotal" runat="server" CssClass="TextoEtiqueta"></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td style="width: 127px; height: 19px" align="left">
                                                <asp:Label ID="Label4" runat="server" CssClass="TextoEtiqueta" Text="Forma de Pago"></asp:Label></td>
                                            <td style="padding-left: 5px; width: 182px; height: 19px" align="left">
                                                :&nbsp;<asp:DropDownList ID="ddlFormaPago" runat="server" CssClass="TextoCombo" enabled="false">
                                                    <asp:ListItem>Factura a 30 dias</asp:ListItem>
                                                    <asp:ListItem>Contado</asp:ListItem>
                                                    <asp:ListItem>Cheque</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td style="width: 9px; height: 19px">
                                            </td>
                                            <td style="width: 67px; height: 19px">
                                            </td>
                                            <td style="width: 114px; height: 19px">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 127px; height: 19px" align="left">
                                                <asp:Label ID="Label7" runat="server" CssClass="TextoEtiqueta" Text="Vigencia"></asp:Label></td>
                                            <td style="padding-left: 5px; width: 182px; height: 19px" align="left">
                                                :&nbsp;<asp:DropDownList ID="ddlVigencia" runat="server" CssClass="TextoCombo" enabled="false">
                                                    <asp:ListItem>1</asp:ListItem>
                                                    <asp:ListItem>2</asp:ListItem>
                                                    <asp:ListItem>3</asp:ListItem>
                                                    <asp:ListItem>4</asp:ListItem>
                                                    <asp:ListItem>5</asp:ListItem>
                                                    <asp:ListItem>6</asp:ListItem>
                                                    <asp:ListItem>7</asp:ListItem>
                                                    <asp:ListItem>8</asp:ListItem>
                                                    <asp:ListItem>9</asp:ListItem>
                                                    <asp:ListItem>10</asp:ListItem>
                                                    <asp:ListItem>11</asp:ListItem>
                                                    <asp:ListItem>12</asp:ListItem>
                                                    <asp:ListItem>13</asp:ListItem>
                                                    <asp:ListItem>14</asp:ListItem>
                                                    <asp:ListItem>15</asp:ListItem>
                                                    <asp:ListItem>16</asp:ListItem>
                                                    <asp:ListItem>17</asp:ListItem>
                                                    <asp:ListItem>18</asp:ListItem>
                                                    <asp:ListItem>19</asp:ListItem>
                                                    <asp:ListItem>20</asp:ListItem>
                                                    <asp:ListItem>21</asp:ListItem>
                                                    <asp:ListItem>22</asp:ListItem>
                                                    <asp:ListItem>23</asp:ListItem>
                                                    <asp:ListItem>24</asp:ListItem>
                                                    <asp:ListItem>25</asp:ListItem>
                                                    <asp:ListItem>26</asp:ListItem>
                                                    <asp:ListItem>27</asp:ListItem>
                                                    <asp:ListItem>28</asp:ListItem>
                                                    <asp:ListItem>29</asp:ListItem>
                                                    <asp:ListItem>30</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td style="width: 9px; height: 19px" align="left">
                                            </td>
                                            <td style="width: 67px">
                                            </td>
                                            <td style="width: 114px; height: 19px" align="left">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 127px; height: 19px" align="left">
                                                <asp:Label ID="Label8" runat="server" CssClass="TextoEtiqueta" Text="Plazo de Entrega"
                                                    Width="127px"></asp:Label></td>
                                            <td style="padding-left: 5px; width: 199px; height: 19px" align="left" colspan="4">
                                                :&nbsp;<asp:TextBox ID="txtPlazoEntrega" runat="server" CssClass="TextoCombo" Width="79px" ReadOnly="true"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 127px; height: 19px" align="left">
                                                <asp:Label ID="Label9" runat="server" CssClass="TextoEtiqueta" Text="Contacto" Width="127px"></asp:Label></td>
                                            <td style="padding-left: 5px; height: 19px" align="left" colspan="4">
                                                :&nbsp;<asp:TextBox ID="txtContacto" runat="server" CssClass="TextoCombo" Width="412px" ReadOnly="true"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 127px; height: 24px" align="left">
                                                <asp:Label ID="Label10" runat="server" CssClass="TextoEtiqueta" Text="Banco" Width="127px"></asp:Label></td>
                                            <td style="padding-left: 5px; height: 19px" align="left" colspan="4">
                                                :&nbsp;<asp:TextBox ID="txtBanco" runat="server" CssClass="TextoCombo" Width="174px" ReadOnly="true"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 127px; height: 19px" align="left">
                                                <asp:Label ID="Label12" runat="server" CssClass="TextoEtiqueta" Text="Numero Cuenta"
                                                    Width="127px"></asp:Label></td>
                                            <td style="padding-left: 5px; width: 199px; height: 19px" align="left" colspan="4">
                                                :&nbsp;<asp:TextBox ID="txtNumeroCuenta" runat="server" CssClass="TextoCombo" Width="174px"
                                                    MaxLength="14" ReadOnly="true"></asp:TextBox>&nbsp;&nbsp;
                                            </td>
                                        </tr>
                                    </tbody>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 20px">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Button ID="btnCancelar" OnClick="btnCancelar_Click" runat="server" CssClass="Boton"
                                    Text="Cancelar" CausesValidation="False" OnClientClick="return confirm('¿ Está seguro que desea cancelar la operación ?')">
                                </asp:Button></td>
                        </tr>
                    </tbody>
                </table>
                </contenttemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
    </table>
</asp:Content>

